package com.guge.sports.mapper;

import com.guge.sports.entity.Dto.SchoolRunDetailDto;
import com.guge.sports.entity.Dto.StSchoolDto;
import com.guge.sports.entity.StSchool;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guge.sports.toolPackage.utils.MyPager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-09-14
 */
public interface StSchoolMapper extends BaseMapper<StSchool> {
    List<SchoolRunDetailDto> getSchoolNameAndId();

    List<StSchoolDto> getSchoolMessageList(@Param("myPager") MyPager<StSchoolDto> myPager, @Param("StSchoolDto") StSchoolDto stSchoolDto);

    Integer selectCountSchoolPage(@Param("StSchoolDto") StSchoolDto stSchoolDto);

    StSchoolDto selectById(Long id);

    Integer updateById(@Param("StSchoolDto")StSchoolDto stSchoolDto);
}
